Rename File
AutomatR.OneDriveApp.Activities.RenameFile
The "Rename File" activity in AutomatR, part of the OneDrive activities package, utilizes Microsoft APIs to rename a file within your OneDrive account. This activity streamlines the process of updating file names, enhancing the efficiency of automation workflows.
Properties
| Name | Description |
|---|---|
| Input | |
| Path | Specifies the file path from the drive of the file you wish to rename. String variables containing the file path. |
| New Name | Specifies the new name that you would like to assign to the file mentioned in the file path. String variables containing the new file name. |
| Misc | |
| Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
| Optional | |
| Delay | Specifies the amount of time (in seconds) to wait before executing the "Rename File" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
How to Use
- Drag and drop the "Rename File" activity onto the workflow.
- Configure the properties by specifying the file path and the new name within the OneDrive account.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to rename the specified file within OneDrive.
Example:
Consider an example where the "Rename File" activity is used to rename a file named "document.txt" within OneDrive:
Rename File:
Display Name: "Rename Document File"
Path: "/Folder1/document.txt"
New Name: "new_document.txt"
In this example, the activity renames the "document.txt" file in "Folder1" to "new_document.txt" within OneDrive.